package com.proposition.commons.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.proposition.commons.enums.PaperPattern;
import com.proposition.commons.enums.CheckStatus;
import com.proposition.commons.enums.PaperType;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2017-11-06 9:56
 **/
@TableName("paper")
public class Paper extends Model<Paper> {

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@TableId
	private String id;
	private String name;
	private String number;
	private String serialNumber;
	@TableField("paper_pattern")
	private PaperPattern paperPattern;
	/**
	 * 试卷AB卷类型
	 */
	@TableField("type")
	private PaperType type;

	private String username;
	private Integer year;
	private Integer batch;
	private CheckStatus checkStatus;
	private String checkUser1;
	private String checkUser2;
	private String checkUser3;
	private String remark;
	private Timestamp updateTime;
	private Timestamp createTime;
	private String checkVersion;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public PaperPattern getPaperPattern() {
		return paperPattern;
	}

	public void setPaperPattern(PaperPattern paperPattern) {
		this.paperPattern = paperPattern;
	}

	public PaperType getType() {
		return type;
	}

	public void setType(PaperType type) {
		this.type = type;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public CheckStatus getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(CheckStatus checkStatus) {
		this.checkStatus = checkStatus;
	}

	public String getCheckUser1() {
		return checkUser1;
	}

	public void setCheckUser1(String checkUser1) {
		this.checkUser1 = checkUser1;
	}

	public String getCheckUser2() {
		return checkUser2;
	}

	public void setCheckUser2(String checkUser2) {
		this.checkUser2 = checkUser2;
	}

	public String getCheckUser3() {
		return checkUser3;
	}

	public void setCheckUser3(String checkUser3) {
		this.checkUser3 = checkUser3;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getCheckVersion() {
		return checkVersion;
	}

	public void setCheckVersion(String checkVersion) {
		this.checkVersion = checkVersion;
	}

	public Integer getBatch() {
		return batch;
	}

	public void setBatch(Integer batch) {
		this.batch = batch;
	}

	@Override
	public String toString() {
		return "Paper{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", number='" + number + '\'' +
				", serialNumber='" + serialNumber + '\'' +
				", paperPattern=" + paperPattern +
				", type=" + type +
				", username='" + username + '\'' +
				", year=" + year +
				", batch=" + batch +
				", checkStatus=" + checkStatus +
				", checkUser1='" + checkUser1 + '\'' +
				", checkUser2='" + checkUser2 + '\'' +
				", checkUser3='" + checkUser3 + '\'' +
				", remark='" + remark + '\'' +
				", updateTime=" + updateTime +
				", createTime=" + createTime +
				", checkVersion='" + checkVersion + '\'' +
				'}';
	}
}
